package com.graduation.lastproject.service.home.HomeBasicActice.impl;


import com.graduation.lastproject.dao.home.HomeDao;
import com.graduation.lastproject.entity.User;
import com.graduation.lastproject.service.home.HomeBasicActice.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class IHomeService implements HomeService {

    @Autowired
    private HomeDao homeDao;

    @Override
    public int login(Map<String,Object> map){
        return homeDao.loginin(map);
    }

    @Override
    public User getByLoginName(String loginName) {
        return homeDao.getUserInfo(loginName);
    }

    @Override
    public boolean getUserPhone(String phone) {
        return homeDao.getUserPhone(phone);
    }

    @Override
    public int updateInfo(Map<String, Object> map) {
        return homeDao.updateInfo(map);
    }
}
